import unittest
import time

import app
from scripts.test01_login import TestLogin
from scripts.test02_login import TestLogin2
from scripts.test03_login import TestLogin3
from tools.HTMLTestRunner import HTMLTestRunner


suite = unittest.TestSuite()

suite.addTest(unittest.makeSuite(TestLogin))
suite.addTest(unittest.makeSuite(TestLogin2))
suite.addTest(unittest.makeSuite(TestLogin3))

# report = app.BASE_DIR + f"/report/report-{time.strftime('%Y%m%d-%H%M%S')}.html"
report = app.BASE_DIR + f"/report/report.html"

with open(report, "wb") as f:
    runner = HTMLTestRunner(f, title="tpshop测试报告")

    runner.run(suite)






